package com.heima.selection.core.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * 
* &#064;ClassName:  BusinessException
* &#064;Description:  业务异常
* @author shibl  
* @date 2020年6月9日 下午1:54:23 
*
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class BusinessException extends BaseException {

	/**
	 * 
	 */
	@Serial
	private static final long serialVersionUID = 1L;

	private String code;

	private String message;

	public BusinessException(String message) {
		super();
		this.message = message;
	}

	public BusinessException(String code, String message) {
		super();
		this.code = code;
		this.message = message;
	}


	@Override
	public String toString() {
		return "BusinessException{" +
				"code='" + code + '\'' +
				", message='" + message + '\'' +
				'}';
	}
}
